package com.pms.service;

import java.util.List;

import com.pms.dao.GoalDao;
import com.pms.entity.Goal;

public class GoalService {

	GoalDao goalDao = new GoalDao();
	
	public void save(Goal goal) {
		goalDao.save(goal);
	}

	public List<Goal> findGoalList() {
		return goalDao.findGoalList();
	}

	public Goal findGoalById(String goalId) {
		return goalDao.findGoalById(goalId);
	}

	public void updateGoalById(String goalId, String title, String content) {
		goalDao.updateGoalById(goalId, title, content);
	}
	
	public void delGoalById(String goalId){
		goalDao.delGoalById(goalId);
	}

}
